<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/sys/tUnitFz/index')">单位分组列表</a>
            </li>
            <li >
                <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/sys/tUnitFz/form')">
                    添加分组
                </a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form modelAttribute="tUnitFz" id="inputForm" onsubmit="return loadDivForm('mainCenterDiv','inputForm','${ctx}/sys/tUnitFz/index');" method="post" class="form-inline">
                                    <label>分组名称：</label><form:input path="name" class="form-control" maxlength="200" value="${baseUnit.name}"/>
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                            </form:form>
                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th style="display: none">id</th>
                            <th>分组名称</th>
                            <th>合同单位</th>
                            <th>限制金额</th>
                            <th>收费方式</th>
                            <th>性别</th>
                            <th>最大年龄</th>
                            <th>最小年龄</th>
                            <th>备注信息</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="tUnitFz">
                        <tr>
                            <td style="display:none"> ${tUnitFz.id}</td>
                            <td> ${tUnitFz.name}</td>
                            <td> ${tUnitFz.unitName}</td>
                            <td> ${tUnitFz.limitPay}</td>
                            <td> ${fns:getDictLabels(tUnitFz.sffs,'PAY_WAY_DICT','')}</td>
                            <td> ${fns:getDictLabels(tUnitFz.allowSex,'SEX_DICT','')}</td>
                            <td> ${tUnitFz.ageHigh}</td>
                            <td> ${tUnitFz.ageLow}</td>
                            <td> ${tUnitFz.remarks}</td>
                            <td>
                                <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/tunitvsclinic/tunitvsclinic/tUnitVsClinic/form?unitId=${tUnitFz.id}&clinicName=${tUnitFz.name}')" class="btn btn-primary btn-xs">添加分组项目</a>
                                <a href="#" class="applyBt btn btn-danger btn-xs"
                                   onclick="confirmExtend('确认要删除该分组吗？',function(){delLoad('mainCenterDiv','${ctx}/sys/tUnitFz/delete?id=${tUnitFz.id}','${ctx}/sys/tUnitFz/index')})">删除</a>
                            </td>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>